home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Ebooks / Thinking in C++ V2 / C05 / Microsoft.makefile < prev    next >
Encoding:
Makefile  |  2000-05-25  |  1.5 KB  |  69 lines

  1. # From Thinking in C++, 2nd Edition
  2. # At http://www.BruceEckel.com
  3. # (c) Bruce Eckel 1999
  4. # Copyright notice in Copyright.txt
  5. # Automatically-generated MAKEFILE 
  6. # For examples in directory C05
  7. # using the Microsoft compiler
  8. # Note: does not make files that will 
  9. # not compile with this compiler
  10. # Invoke with: make -f Microsoft.makefile
  11.  
  12. # Note: this requires the service Pack 3 from
  13. # www.Microsoft.com for successful compilation!
  14. CPP = cl
  15. CPPFLAGS = -GX -GR
  16. OFLAG = -o
  17. .SUFFIXES : .obj .cpp .c
  18. .cpp.obj :
  19.     $(CPP) $(CPPFLAGS) -c $<
  20. .c.obj :
  21.     $(CPP) $(CPPFLAGS) -c $<
  22.  
  23. all: \
  24.     Public.exe \
  25.     Private.exe \
  26.     Friend.exe \
  27.     NestFriend.exe \
  28.     Class.exe \
  29.     UseHandle.exe 
  30.  
  31. test: all 
  32.     Public.exe  
  33.     Private.exe  
  34.     Friend.exe  
  35.     NestFriend.exe  
  36.     Class.exe  
  37.     UseHandle.exe  
  38.  
  39. bugs: 
  40.     @echo No compiler bugs in this directory!
  41.  
  42. Public.exe: Public.obj 
  43.     $(CPP) $(OFLAG)Public.exe Public.obj 
  44.  
  45. Private.exe: Private.obj 
  46.     $(CPP) $(OFLAG)Private.exe Private.obj 
  47.  
  48. Friend.exe: Friend.obj 
  49.     $(CPP) $(OFLAG)Friend.exe Friend.obj 
  50.  
  51. NestFriend.exe: NestFriend.obj 
  52.     $(CPP) $(OFLAG)NestFriend.exe NestFriend.obj 
  53.  
  54. Class.exe: Class.obj 
  55.     $(CPP) $(OFLAG)Class.exe Class.obj 
  56.  
  57. UseHandle.exe: UseHandle.obj Handle.obj 
  58.     $(CPP) $(OFLAG)UseHandle.exe UseHandle.obj Handle.obj 
  59.  
  60.  
  61. Public.obj: Public.cpp 
  62. Private.obj: Private.cpp 
  63. Friend.obj: Friend.cpp 
  64. NestFriend.obj: NestFriend.cpp 
  65. Class.obj: Class.cpp 
  66. Handle.obj: Handle.cpp Handle.h ..\require.h 
  67. UseHandle.obj: UseHandle.cpp Handle.h 
  68.  
  69.